﻿@page "/"
@namespace Masa.Tsc.Admin.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
    Layout = "_Layout";
}

@{
    var tokens = new TokenProvider
    {
        AccessToken = await HttpContext.GetTokenAsync(OpenIdConnectParameterNames.AccessToken),
        RefreshToken = await HttpContext.GetTokenAsync(OpenIdConnectParameterNames.RefreshToken),
        IdToken = await HttpContext.GetTokenAsync(OpenIdConnectParameterNames.IdToken)
    };
}

<component type="typeof(Masa.Tsc.Web.Admin.Rcl.ServerRouters)" render-mode="Server"  param-InitialState="tokens" />